package com.heima.admin.controller.v1;

import com.heima.admin.service.AdSensitiveService;
import com.heima.model.admin.dtos.SensitivePageReqDto;
import com.heima.model.common.dtos.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author atom.hu
 * @version V1.0
 * @Package com.heima.admin.controller.v1
 * @date 2021/12/22 10:48
 */
@RestController
@RequestMapping("/api/v1/sensitive")
public class AdsensitiveController {

    @Autowired
    private AdSensitiveService sensitiveService;

    @PostMapping("/list")
    public ResponseResult list(@RequestBody SensitivePageReqDto dto){
        return sensitiveService.list(dto);
    }
}
